home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000109_spcecdt@deeptht.armory.com_Sun Nov 4 18:15:01 EST 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  51 lines

  1. Article: 12927 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!gemini.tycho.net.POSTED!not-for-mail
  3. Newsgroups: comp.unix.sco.misc,comp.protocols.kermit.misc
  4. Subject: Re: Dropping DTR in OSR5
  5. References: <9s40rp$fdh$1@newsmaster.cc.columbia.edu>
  6. Organization: The Armory
  7. X-Newsreader: trn 4.0-test69 (20 September 1998)
  8. From: spcecdt@deeptht.armory.com (John DuBois)
  9. Date: 04 Nov 2001 22:51:20 GMT
  10. Lines: 34
  11. Message-ID: <3be5c667$0$439$8eec23a@newsreader.tycho.net>
  12. NNTP-Posting-Host: 86058607.newsreader.tycho.net
  13. X-Trace: 1004914280 gemini.tycho.net 439 spcecdt@192.122.209.42
  14. X-Complaints-To: abuse@tycho.net
  15. Xref: newsmaster.cc.columbia.edu comp.unix.sco.misc:139883 comp.protocols.kermit.misc:12927
  16.  
  17. In article <9s40rp$fdh$1@newsmaster.cc.columbia.edu>,
  18. Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  19. >But the real problem is that when Kermit *does* try to drop DTR briefly,
  20. >it never comes back on.  So I need to ask: What is the way to turn off
  21. >DTR and then turn it back on in OSR5?  Currently I am using the POSIX
  22. >way:
  23. >
  24. >  cfgetospeed() and cfgetispeed() to get the speeds.
  25. >  cfsetospeed() and cfsetispeed() to set the speed to 0.
  26. >  tcsetattr() to make the speed changes take effect.
  27. >  (pause)
  28. >  cfsetospeed() and cfsetispeed() to restore the original speeds.
  29. >  tcsetattr() to make the speed changes take effect.
  30. >
  31. >The same code works fine on Linux, FreeBSD, and other platforms that use
  32. >POSIX APIs.  It appears to work fine in OSR5 too: the steps before the
  33. >pause actually do work.  But the steps after the pause, although they
  34. >return no error indication and do not set errno, do not in fact make DTR
  35. >and RTS come back on (as shown by the modem lights and the failure of the
  36. >modem to respond to further commands).
  37.  
  38. Some problems in this area were fixed in 5.0.6a.  Please test on that release
  39. and see if you still encounter this problem.
  40.  
  41. >Speaking of modem signals, how are we supposed to read them?  The TIOCMGET
  42. >ioctl() fails with error 22 ("invalid argument").
  43.  
  44. This is how I know you aren't using 5.0.6a :)  TIOCMGET/TIOCMSET/etc. were
  45. first implemented in the sio driver in that release.  In earlier releases,
  46. support for these ioctls was present only in certain 3rd party serial drivers.
  47.  
  48.     John
  49. -- 
  50. John DuBois  spcecdt@armory.com.  KC6QKZ/AE  http://www.armory.com./~spcecdt/
  51.